package com.example.about_example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/calc")
public class CalcController {

@RequestMapping("/r1")
    public String addNumber(Integer a,Integer b){
    System.out.println("=============sum===="); //打印日志以判断错误
    Integer sum = a + b;
        return "a+b的和为:"+sum;
    }
}
